// 复用的代码
export default {
    mounted() {
        window.addEventListener('resize', this.resize)
    },
    beforeDestroy() {
        window.removeEventListener('resize', this.resize)
    },
    methods:{
        resize:function(){
            this.myEcharts.resize()
        }
    }
}